package com.orderplus.opshop.synces.entity.product;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

@Data
@TableName("product_sku")
@EqualsAndHashCode(callSuper=false)
public class ProductSku extends Model<ProductSku> {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @TableField("product_id")
    private Integer productId;
    @TableField("sku_id")
    private String skuId;
    @TableField("attribute_list_ids")
    private String attributeListIds;
    @TableField("ali_sku_id")
    private String aliSkuId;
    @TableField("wholesale_limit")
    private Integer wholesaleLimit;
    @TableField("wholesale_count")
    private Integer wholesaleCount;
    @TableField("price_in")
    private String priceIn;
    @TableField("price_json")
    private String priceJson;
    @TableField("price_json_cn")
    private String priceJsonCn;
    @TableField("price_json_th")
    private String priceJsonTh;
    @TableField("price_json_id")
    private String priceJsonId;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}